const app = getApp()

Page({
  data: {

  },

  onLoad: function (options) {

    var that = this;
    var userId = wx.getStorageSync('userId');

    // that.setData({

    //   type: options.type,
    // });
    that.remit_list(userId);//获取个人订单

  },

  //提现记录
  remit_list: function (userId) {
    var that = this;
    wx.request({
      url: app.globalData.apiUrl + 'User/remit_list',
      data: {

        userId: wx.getStorageSync('userId'),
      },

      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        if (res.data != null) {
          that.setData({
            remit_list: res.data,
          })
        }
      }
    })
  },
})